+2005-08-09 Øyvind Kolås <pippin@gimp.org>
+
+ * babl/babl-internal.h: issue a babl_log when the named object is not
+ found durin string based lookup.
+ * babl/babl-pixel-format.c: added BABL_IMAGE to var_args switch.
+ * babl/babl-classes.c: set babl_hmpf_on_name_lookups initial value to
+ 0, to make it hmpf only in babl-base.
+
2005-08-09 Øyvind Kolås <pippin@gimp.org>
* babl/Makefile-mini: added babl-image.o.
return class_names[klass-BABL_INSTANCE];
}
-int babl_hmpf_on_name_lookups = 1;
+int babl_hmpf_on_name_lookups = 0;
case BABL_CONVERSION_PIXEL_FORMAT:
case BABL_CONVERSION_PIXEL_FORMAT_PLANAR:
case BABL_FISH:
+ case BABL_IMAGE:
babl_log ("%s(): %s unexpected",
__FUNCTION__, babl_class_name (babl->instance.type));
break;
return class_names[klass-BABL_INSTANCE];
}
-int babl_hmpf_on_name_lookups = 1;
+int babl_hmpf_on_name_lookups = 0;
TypeName * \
type_name (const char *name) \
{ \
+ TypeName *ret; \
+ \
if (babl_hmpf_on_name_lookups) \
{ \
babl_log ("%s(\"%s\"): hmpf!", __FUNCTION__, name); \
} \
- return (TypeName*) db_exist (0, name); \
+ ret = (TypeName*) db_exist (0, name); \
+ \
+ if (!ret) \
+ { \
+ babl_log ("%s(\"%s\"): not found", __FUNCTION__, name); \
+ } \
+ return ret; \
}
#define BABL_DEFINE_INIT(type_name) \
case BABL_CONVERSION_PIXEL_FORMAT:
case BABL_CONVERSION_PIXEL_FORMAT_PLANAR:
case BABL_FISH:
+ case BABL_IMAGE:
babl_log ("%s(): %s unexpected",
__FUNCTION__, babl_class_name (babl->instance.type));
break;